import request from '@/utils/request'

// 查询交易对手列表
export function listDealBondCounterparty(query) {
  return request({
    url: '/counterparty/dealBondCounterparty/list',
    method: 'get',
    params: query
  })
}

// 查询交易对手详细
export function getDealBondCounterparty(id) {
  return request({
    url: '/counterparty/dealBondCounterparty/' + id,
    method: 'get'
  })
}

// 保存交易对手
export function saveDealBondCounterparty(data) {
  return request({
    url: '/counterparty/dealBondCounterparty/save',
    method: 'post',
    data: data
  })
}

// 删除交易对手
export function delDealBondCounterparty(id) {
  return request({
    url: '/counterparty/dealBondCounterparty/' + id,
    method: 'delete'
  })
}

// 导出交易对手
export function exportDealBondCounterparty(query) {
  return request({
    url: '/counterparty/dealBondCounterparty/export',
    method: 'get',
    params: query
  })
}
